# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources_ifdef(CONFIG_SPI_CC13XX_CC26XX		spi_cc13xx_cc26xx.c)
zephyr_library_sources_ifdef(CONFIG_SPI_DW		spi_dw.c)
zephyr_library_sources_ifdef(CONFIG_SPI_STM32		spi_ll_stm32.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_DSPI	spi_mcux_dspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_FLEXCOMM	spi_mcux_flexcomm.c)
zephyr_library_sources_ifdef(CONFIG_SPI_MCUX_LPSPI	spi_mcux_lpspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_SAM		spi_sam.c)
zephyr_library_sources_ifdef(CONFIG_SPI_SAM0		spi_sam0.c)
zephyr_library_sources_ifdef(CONFIG_SPI_SIFIVE		spi_sifive.c)
zephyr_library_sources_ifdef(CONFIG_SPI_RV32M1_LPSPI	spi_rv32m1_lpspi.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_SPI		spi_nrfx_spi.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_SPIM		spi_nrfx_spim.c)
zephyr_library_sources_ifdef(CONFIG_NRFX_SPIS		spi_nrfx_spis.c)
zephyr_library_sources_ifdef(CONFIG_SPI_LITESPI		spi_litespi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_OC_SIMPLE	spi_oc_simple.c)
zephyr_library_sources_ifdef(CONFIG_SPI_XEC_QMSPI	spi_xec_qmspi.c)
zephyr_library_sources_ifdef(CONFIG_SPI_GECKO		spi_gecko.c)

zephyr_library_sources_ifdef(CONFIG_USERSPACE		spi_handlers.c)
